import request from '@/utils/request'

//排课表列表
export function queryList(data) {
    return request({
        url: 'crmTimeTable/queryList',
        method: 'post',
        data: data,
        headers: {
            'Content-Type': 'application/json;charset=UTF-8'
        }
    })
}
//新增排课表
export function addTimeTable(data) {
    return request({
        url: 'crmTimeTable/addTimeTable',
        method: 'post',
        data: data,
        headers: {
            'Content-Type': 'application/json;charset=UTF-8'
        }
    })
}

export function deleteById(data) {
    return request({
        url: 'crmTimeTable/deleteById',
        method: 'post',
        params: data,
        headers: {
            'Content-Type': 'application/json;charset=UTF-8'
        }
    })
}

// 根据id查看课程列表
export function queryByClassId(data) {
    return request({
        url: 'crmTimeTable/queryByClassId',
        method: 'post',
        params: data,
        headers: {
            'Content-Type': 'application/json;charset=UTF-8'
        }
    })
}
// 新建课程表
export function addData(data) {
    return request({
        url: 'crmTimeTable/addData',
        method: 'post',
        data: data,
        headers: {
            'Content-Type': 'application/json;charset=UTF-8'
        }
    })
}
// 新建课程表 根据id删除课程
export function deleteData(data) {
    return request({
        url: 'crmTimeTable/deleteData',
        method: 'post',
        params: data,
        headers: {
            'Content-Type': 'application/json;charset=UTF-8'
        }
    })
}
// 新建课程表 修改讲师和期次
export function updateData(data) {
    return request({
        url: 'crmTimeTable/updateData',
        method: 'post',
        data: data,
        headers: {
            'Content-Type': 'application/json;charset=UTF-8'
        }
    })
}

// 编辑课程名称
export function updateClassName(data) {
    return request({
        url: 'crmTimeTable/updateClassName',
        method: 'post',
        data: data,
        headers: {
            'Content-Type': 'application/json;charset=UTF-8'
        }
    })
}